#ifndef		__UDPSENDTHREAD_H__
#define		__UDPSENDTHREAD_H__
#include "jthread.h"
#include "jmutex.h"
#include "UDPProcess.h"
#include <ctime>
class UDPProcessThread;
class UDPSendThread:private JThread
{
public:
	UDPSendThread(UDPProcessThread &process);
	~UDPSendThread();

//	int UDPClient(const char *ip, unsigned short port);
	int Start();
	void Stop();
protected:
private:
	void *Thread();
	bool stop;
	JMutex stopmutex;
	UDPProcessThread &udpProcess;

	time_t beginTime;
	time_t nowTime;
};

#endif